package com.example.myui.activity.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.example.myui.activity.MultiDownloadActivity;

/**
 * Created by Administrator on 2018/2/2/002.
 */

public class DownloadBroadcast extends BroadcastReceiver {
    private static final String TAG = DownloadBroadcast.class.getSimpleName();

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        switch (action) {
            case MultiDownloadActivity.ACTION_TYPE_SERVICE:
                Log.i(TAG, "onReceive: ");
                break;

            case MultiDownloadActivity.ACTION_TYPE_THREAD:
//                float fraction = Float.parseFloat(intent.getStringExtra("fraction"));
                Log.i(TAG, "onReceive: " );
                break;

        }
    }
}
